<?php namespace Home\Controller; 
use Hdphp\Controller\Controller;
//首页控制器
class IndexController extends Controller{
    //首页
    public function index(){
    	$goods=new \Common\Model\Goods;
		$goodsData=$goods->where("category_cid=0")->get();
//		p($goodsData);exit;
		View::with('goodsData',$goodsData);
       View::make();
    }
}
